package com.wash.shoes.controller.mobile;


import com.ruoyi.common.core.domain.R;
import com.wash.shoes.entity.ShopGoodsTypePo;
import com.wash.shoes.service.ShopGoodsTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ljg
 * @since 2024-12-01
 */
@Api(tags = {"移动端-商品的分类"})
@RestController
@RequestMapping("/mobile-api/shopGoodsType")
public class ShopGoodsTypeMController extends BaseMController {

    @Autowired
    ShopGoodsTypeService shopGoodsTypeService;

    @ApiOperation("获取商品类型列表")
    @PostMapping("/shopGoodsTypeList")
    public R<List<ShopGoodsTypePo>> shopGoodsTypeList() {
        List<ShopGoodsTypePo> dataList = shopGoodsTypeService.shopGoodsTypeList();
        return R.ok(dataList);
    }

}

